import request from '@/router/axios'

//获取群列表
export function getChatList(query) {
    return request({
        url: '/cp/mass/page',
        method: 'get',
        params: query
    })
}
//同步信息
export function synData(query) {
    return request({
        url: '/cp/mass/syn',
        method: 'put',
        params: query
    })
}
//导出excel
export function exportExcel(obj) {
    return request({
        url: '/cp/mass/excel',
        method: 'post',
        data: obj,
        responseType: "blob"
    })
}
//群详情列表
export function detailList(query) {
    return request({
        url: '/cp/mass/list',
        method: 'get',
        params: query
    })
}
//群详情基础信息
export function detailBasic(query) {
    return request({
        url: '/cp/mass/details',
        method: 'get',
        params: query
    })
}

// 部门级联下拉框接口
export function deptCascade(deptId) {
    return request({
        url: `/cp/workdepartment/link-objects/${deptId}`,
        method: 'get'
    })
}
